package mini.expr.math;


import java.util.HashMap;
import java.util.LinkedList;

import mini.Proc;
import mini.expr.Expr;

public class Times extends Expr {

    private Expr expr1,  expr2;

    public Times(Expr op1, Expr op2) {
        expr1 = op1;
        expr2 = op2;
    }

    public Integer eval(HashMap<String, Integer> nametable, HashMap<String, Proc> functiontable, LinkedList var) {
        return new Integer(expr1.eval(nametable, functiontable, var) * expr2.eval(nametable, functiontable, var));
    }
}
